ifPresent

inline fun <T> KOptional<T>.ifPresent(action: (T) -> Unit): KOptional<T>(source)

Executes the provided action if the value is present.